#ifndef _RSMSG_QUE_H_
#define _RSMSG_QUE_H_
#include <stdio.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

// buffer 长度
#define MAX_MSG_LEN 100

extern void InitRs485Msg();
extern int RsMsgQueIsFull(int chn);
extern int RsMsgQueReset(int chn);
extern int RsMsgQueIsEmpty(int chn);
extern short RsMsgEnqueue(int chn, unsigned char msg);
extern short RsMsgDequeue(int chn, unsigned char* msg);
extern unsigned int RsMsgEnqueueAlot(int chn, unsigned char* msg, int len);
extern unsigned int RsMsgDequeueAlot(int chn, unsigned char* msg, int len);
extern unsigned int RsMsgQueGetAll(int chn, unsigned char* msg);
extern int RsMsgQueSize(int chn);

#ifdef __cplusplus
}
#endif

#endif
